package iteratorpattern;
/**
 * @author sunxu
 * @Date 2017/10/15
 *
 */
public interface Iterator {
    /**
     * 判断是否有下一个元素
     * @return boolean
     */
    public abstract boolean hasNext();

    /**
     * 返回指针当前对象
     * @return Object
     */
    public abstract Object next();
}
